home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / layer / r3lislay.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.9 KB  |  113 lines

  1.  
  2. // JavaScript wrapper for r3lislay.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_LISTLAYER_H = 1;
  7. include("real/layer/r3objlay.js")
  8.  
  9.  
  10. var R3CLID_LISTLAYER = 76;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Send given method to all target objects.
  16. // p3: Tag[], R3RA_TargetMth + any number of other tags, which will be passed    * to the target
  17. //      objects in the tag list.
  18.  
  19. R3LLAYM_OOENUM = 76000;
  20.  
  21. function mR3LLAYM_OOENUM(p3) {
  22.   Do(this.r3obj, 76000, p3, R3TID_TAG, R3TNF_ARRAY);
  23. }
  24.  
  25. // Description: Enumerate objects to the callback function. The function must be    * of form: int mycallback(R3OBJ
  26. //      o, void *mydata); If the callback    * returns 1, enumeration continues. Use return value 0 or
  27. //      -1 to cancel    * enumeration.
  28. // Returns: Integer, return value from the callback.
  29. // p3: Tag[], R3RA_Hook, R3RA_HookData
  30.  
  31. R3LLAYM_ENUM = 76001;
  32.  
  33. function mR3LLAYM_ENUM(p3) {
  34.   return   Do(this.r3obj, 76001, p3, R3TID_TAG, R3TNF_ARRAY);
  35. }
  36.  
  37. // Description: Fetch the object with given ordnum.
  38. // Returns: Object, object
  39. // p3: Integer, ordnum
  40.  
  41. R3LLAYM_GETBYORDNUM = 76002;
  42.  
  43. function mR3LLAYM_GETBYORDNUM(p3) {
  44.   return R3ToJS(  DoA(this.r3obj, 76002, p3, R3TID_INTEGER, 0));
  45. }
  46.  
  47. // Description: Apply given method to all objects in the layer.
  48. // p1: Boolean, disable R3MM_CHANGED
  49. // p3: Tag[], R3OLAYA_PMethod, R3OLAYA_PMsg, R3OLAYA_PMsg2, R3OLAYA_PMsg3
  50.  
  51. R3LLAYM_PERFORMONLIST = 76003;
  52.  
  53. function mR3LLAYM_PERFORMONLIST(p1, p3) {
  54.   Do2(this.r3obj, 76003, p1, R3TID_BOOLEAN, 0, p3, R3TID_TAG, R3TNF_ARRAY);
  55. }
  56.  
  57. // Description: Set animation recording on/off.
  58. // p3: Boolean, true/false    
  59.  
  60. R3LLAYM_ANIMRECORD = 76004;
  61.  
  62. function mR3LLAYM_ANIMRECORD(p3) {
  63.   DoA(this.r3obj, 76004, p3, R3TID_BOOLEAN, 0);
  64. }
  65.  
  66.  
  67. R3LLAYM_DELETEDUPLICATES = 76006;
  68.  
  69. function mR3LLAYM_DELETEDUPLICATES() {
  70.   DoA(this.r3obj, 76006, 0, R3TID_INTEGER, 0);
  71. }
  72.  
  73.  
  74.  
  75.  
  76. R3LLAYA_InitObject = 76502;
  77. function SetR3LLAYA_InitObject(value) {
  78.   R3Set(this.r3obj, R3LLAYA_InitObject, value, R3TID_OBJECT, 0); 
  79. }
  80.  
  81. R3LLAYA_InitMethod = 76503;
  82. function SetR3LLAYA_InitMethod(value) {
  83.   R3Set(this.r3obj, R3LLAYA_InitMethod, value, R3TID_INTEGER, 0); 
  84. }
  85.  
  86. R3LLAYA_ObjectList = 76504;
  87. function GetR3LLAYA_ObjectList() {
  88.   return R3Get(this.r3obj, R3LLAYA_ObjectList, R3TID_LIST, R3TNF_ARRAY); 
  89. }
  90.  
  91.  
  92.  
  93. function r3Listlayer () { 
  94.    this.base = r3God;
  95.    if(arguments.length) {
  96.       this.base(R3CLID_LISTLAYER, arguments);
  97.    }
  98.    // Methods
  99.    this.OOENUM=mR3LLAYM_OOENUM;
  100.    this.ENUM=mR3LLAYM_ENUM;
  101.    this.GETBYORDNUM=mR3LLAYM_GETBYORDNUM;
  102.    this.PERFORMONLIST=mR3LLAYM_PERFORMONLIST;
  103.    this.ANIMRECORD=mR3LLAYM_ANIMRECORD;
  104.    this.DELETEDUPLICATES=mR3LLAYM_DELETEDUPLICATES;
  105.  
  106.    // Attributes
  107.    this.SetInitObject=SetR3LLAYA_InitObject;
  108.    this.SetInitMethod=SetR3LLAYA_InitMethod;
  109.    this.GetObjectList=GetR3LLAYA_ObjectList;
  110. }
  111.  
  112. r3Listlayer.prototype=new r3Objectlayer;
  113. // r3lislay.h_H